package us.mooresr.webtroopmanager.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class UserDeletedEvent extends GwtEvent<UserDeletedHandler> {
	public static final Type<UserDeletedHandler> TYPE = new Type<UserDeletedHandler>();
	Long deletedId;
	
	

	public UserDeletedEvent(Long deletedId) {
		super();
		this.deletedId = deletedId;
	}

	@Override
	protected void dispatch(UserDeletedHandler handler) {
		handler.onDeleteUser(this);
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<UserDeletedHandler> getAssociatedType() {
		return TYPE;
	}

	public Long getDeletedId() {
		return deletedId;
	}

	
}
